import assessCheckApi from './api'
import { axios } from '@/utils/request'

// 聘任登记-分页查询
export function prdjPageList(params){
  return axios({
    url: assessCheckApi.prdjPageList,
    method:'get',
    params:{...params},
    url_1:'outside',
  })
}

// 聘任登记-新增-保存
export function savePrdj(data){
  return axios({
    url: assessCheckApi.savePrdj,
    method:'post',
    data:data,
    url_1:'outside',
  })
}

// 聘任登记-删除
export function deletePrdj(params){
  return axios({
    url: assessCheckApi.deletePrdj,
    method:'delete',
    params:{...params},
    url_1:'outside',
  })
}

// 聘任登记-附件上传
export function uploadPrdjFile(data){
  return axios({
    url: assessCheckApi.uploadPrdjFile,
    method:'post',
    data:data,
    url_1:'outside',
  })
}

// 聘任登记-提交
export function submitPrdj(data){
  return axios({
    url: assessCheckApi.submitPrdj,
    method:'post',
    data:data,
    url_1:'outside',
  })
}

// 聘任登记-退回
export function returnPrdj(data){
  return axios({
    url: assessCheckApi.returnPrdj,
    method:'post',
    data:data,
    url_1:'outside',
  })
}

// 聘任登记-根据id查看
export function queryPrdjById(params){
  return axios({
    url: assessCheckApi.queryPrdjById,
    method:'get',
    params:{...params},
    url_1:'outside',
  })
}

// 聘任登记-生成拟聘人员名单
export function genNprymd(data){
  return axios({
    url: assessCheckApi.genNprymd,
    method:'post',
    data:data,
    url_1:'outside',
  })
}

// 拟聘人员名单-移除名单
export function nprymdByYcmd(data){
  return axios({
    url: assessCheckApi.nprymdByYcmd,
    method:'post',
    data:data,
    url_1:'outside',
  })
}

// 拟聘人员名单-分页查询
export function nprymdPageList(params){
  return axios({
    url: assessCheckApi.nprymdPageList,
    method:'get',
    params:{...params},
    url_1:'outside',
  })
}

// 拟聘人员名单-导出名单
export function exportNprymd(params){
  return axios({
    url: assessCheckApi.exportNprymd,
    method:'get',
    params:{...params},
    url_1:'outside',
    responseType: 'arraybuffer'
  })
}

// 聘任登记-手动添加人员
export function sddjRymd(data){
  return axios({
    url: assessCheckApi.sddjRymd,
    method:'post',
    data:data,
    url_1:'outside',
  })
}

// 发起审评员聘任-拟聘名单流程
export function initJcyPrInNpmdlc(params){
  return axios({
    url: assessCheckApi.initJcyPrInNpmdlc,
    method:'get',
    params:{...params},
    url_1:'outside',
  })
}
// 发起审评员聘任-聘任名单确认流程
export function initJcyPrInPrmdqrlc(params){
  return axios({
    url: assessCheckApi.initJcyPrInPrmdqrlc,
    method:'get',
    params:{...params},
    url_1:'outside',
  })
}

// 流程页面表-通过jobid查询
export function queryByJodId(params){
  return axios({
    url: assessCheckApi.queryByJodId,
    method:'get' ,
    params:{...params},
    url_2:'outside',
  })
}

// 流行政事务流程-查看
export function viewXzswlc(params){
  return axios({
    url: assessCheckApi.viewXzswlc,
    method:'get' ,
    params:{...params},
    url_1:'outside',
  })
}

// 行政事务流程-删除
export function deletXzswlc(params){
  return axios({
    url: assessCheckApi.deletXzswlc,
    method:'delete' ,
    params:{...params},
    url_1:'outside',
  })
}
